package de.swm.gwt.client.paging;

import de.swm.gwt.client.interfaces.IPagingLoadConfig;



/**
 * Basis implementierung von {@link IPagingLoadConfig}.
 * 
 * @author wiese.daniel <br>
 *         copyright (C) 2011, SWM Services GmbH
 * 
 */
public class BasePagingLoadConfig implements IPagingLoadConfig {

	private static final long serialVersionUID = 1L;
	
	private int limit;
	private int offset;



	@Override
	public int getLimit() {
		return limit;
	}



	@Override
	public int getOffset() {
		return offset;
	}



	/**
	 * limit the limit to set.
	 * 
	 * @param limit
	 *            the limit to set
	 */
	public void setLimit(int limit) {
		this.limit = limit;
	}



	/**
	 * offset the offset to set.
	 * 
	 * @param offset
	 *            the offset to set
	 */
	public void setOffset(int offset) {
		this.offset = offset;
	}

}
